let assert = require('assert');

/**
 *  describe 类似与Java里的类
 *  it 类似于 Java里的 @Test
 *  生命周期钩子方法名
 *
 *  TODO 如何启动类似于 Spring 容器
 */
describe('My First Test', () => {

    beforeEach(() => {
        console.log("beforeEach")
    });

    before(() => {
        console.log("before")
    });

    it('test_assert_equal', () => {
        assert.equal(-1, [1, 2, 3].indexOf(5));
    });

    it('test_not_equal', () => {
        assert.notEqual(1, [1, 2, 3].indexOf(5));
    });

    after(() => {
        console.log("after")
    });

    afterEach(() => {
        console.log("afterEach")
    })
});
